package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class BuyOrLaboratory extends BaseEntity {
    /** 已购产品ID */
    private Integer id;
    /** 院系ID */
    private Integer facultyId;
    @Excel(name = "设备名称")
    private String deviceName;
    @Excel(name = "数量")
    private Integer num;
    @Excel(name = "单价(万元)")
    private BigDecimal amount;
    @Excel(name = "总金额(万元)")
    private BigDecimal totalAmount;
    @Excel(name = "类型",readConverterExp = "0=已购设备,1=实验室现状")
    private Integer type;
    @Excel(name = "公司名称")
    private String companyName;

    @Excel(name = "学校名称")
    private String schoolName;

    @Excel(name = "院系名称")
    private String facultyName;

    private Integer delFlag;


    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 当前用户部门ID */
    private Integer deptId;
    /** 用户ID */
    private Integer userId;

    private List<String> childrenOrMine;

    /** 排序 */
    private String sort;
}
